//
//  WBNavigationController.swift
//  CCWeibo
//
//  Created by Chad on 2016/11/4.
//  Copyright © 2016年 Chad. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if childViewControllers.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: true)
    }
}
